# coding=utf-8
__author__ = 'good'
from flask_wtf import Form
from wtforms import TextField, TextAreaField, SubmitField
from wtforms.validators import DataRequired


class SearchForm(Form):
    """搜索表单"""
    search = TextField('search')


class CommentForm(Form):
    name = TextField(u'一个名字:', [DataRequired(u'要有个名字')])
    comment = TextAreaField(u'建议：', [DataRequired(u'还是不要空着吧')])
    submit = SubmitField(u'提交')